home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c++ / 267 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.6 KB  |  73 lines

  1. Path: fido.asd.sgi.com!austern
  2. From: John Max Skaller <maxtal@suphys.physics.su.oz.au>
  3. Newsgroups: comp.std.c++
  4. Subject: Re: Are all Windows programs ill-formed?
  5. Date: 05 Feb 1996 09:26:48 PST
  6. Organization: MAXTAL
  7. Approved: austern@isolde.mti.sgi.com
  8. Message-ID: <311417C8.4016@suphys.physics.su.oz.au>
  9. References: <AE5J83na99@qsar.chem.msu.su> <9602010236.26117@mulga.cs.mu.OZ.AU> <9602021032.AA05302@lts.sel.alcatel.de>
  10. NNTP-Posting-Host: isolde.mti.sgi.com
  11. X-Original-Date: Sun, 04 Feb 1996 12:19:52 +1000
  12. X-Mailer: Mozilla 2.0b6a (WinNT; I)
  13. X-Auth: PGPMoose V1.1 PGP comp.std.c++
  14.     iQBVAwUBMRY950y4NqrwXLNJAQHk0gIAlT6LBdF2Mtje7Lrc2Zm804VZPBxHjK//
  15.     l9v+rRpoJAvRKE5zPIgGf3pVtEeH4GNJg9QLXtcqftfMmPeVkf9chQ==
  16.     =1wTv
  17. Originator: austern@isolde.mti.sgi.com
  18.  
  19. James Kanze US/ESC 60/3/141 #40763 wrote:
  20. > I believe that the simple answer is that Windows programs operate in a
  21. > unhosted environment.  
  22.  
  23.     This is a clear condemnation of the Standard,
  24. Windows is obviously a hosting operating system.
  25.  
  26. > |> But if a compiler does not accept
  27. > |>      int main() { return 0; }
  28. > |> as a complete program, then that compiler is not a conforming C or C++
  29. > |> implementation.
  30.  
  31.  
  32. This is the crux of the problem. More important, when I
  33. try to use "cout" the program won't link. This is 
  34. important to me -- I've scrapped Win3.11 in favour
  35. of NT mainly because of this deficiency (in Win3.1 wrt
  36. the Standard).
  37.  
  38. In my opinion, program startup and environment
  39. shouldn't be part of the language standard at all.
  40.  
  41. Instead, requirements should be created for creating
  42. a BINDING to a particular environment, and then
  43. bindings created.
  44.  
  45. For example, a POSIX binding would be popular;
  46. but MS would still be free to create a Windows
  47. binding.
  48.  
  49. In effect, there are _industry_ standards which
  50. supercedes the ISO one, which is clearly
  51. inadequate for modern needs. Unfortunately,
  52. none of the "standards" are portable, _including_
  53. the ISO one.
  54.  
  55. The distinction between "hosted" and "unhosted"
  56. systems is better than nothing -- but it was more
  57. useful 20 years ago than it is now, when it is
  58. simply far too weak. (I.e two levels is just
  59. not a good enough design any more)
  60.  
  61.  
  62. -- 
  63. John Max Skaller               voice: 61-2-566-2189
  64. 81 Glebe Point Rd              fax:   61-2-660-0850
  65. GLEBE NSW 2037                 web: http://www.maxtal.com.au/~skaller/
  66. AUSTRALIA                      email: skaller@maxtal.com.au
  67. ---
  68. [ comp.std.c++ is moderated.  Submission address: std-c++@ncar.ucar.edu.
  69.   Contact address: std-c++-request@ncar.ucar.edu.  The moderation policy is
  70.   in http://reality.sgi.com/employees/austern_mti/std-c++/policy.html. ]
  71.